package com.sdhs.qualitymanage.service.impl;

import java.util.List;
import com.sdhs.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.qualitymanage.mapper.GcQualityMapper;
import com.sdhs.qualitymanage.domain.GcQuality;
import com.sdhs.qualitymanage.service.IGcQualityService;

/**
 * 质量管理-默认Service业务层处理
 *
 * @author add
 * @date 2025-04-11
 */
@Service
public class GcQualityServiceImpl implements IGcQualityService
{
    @Autowired
    private GcQualityMapper gcQualityMapper;

    /**
     * 查询质量管理-默认
     *
     * @param qualityId 质量管理-默认主键
     * @return 质量管理-默认
     */
    @Override
    public GcQuality selectGcQualityByQualityId(Long qualityId)
    {
        return gcQualityMapper.selectGcQualityByQualityId(qualityId);
    }

    /**
     * 查询质量管理-默认列表
     *
     * @param gcQuality 质量管理-默认
     * @return 质量管理-默认
     */
    @Override
    public List<GcQuality> selectGcQualityList(GcQuality gcQuality)
    {
        return gcQualityMapper.selectGcQualityList(gcQuality);
    }

    /**
     * 新增质量管理-默认
     *
     * @param gcQuality 质量管理-默认
     * @return 结果
     */
    @Override
    public int insertGcQuality(GcQuality gcQuality)
    {
        return gcQualityMapper.insertGcQuality(gcQuality);
    }

    /**
     * 修改质量管理-默认
     *
     * @param gcQuality 质量管理-默认
     * @return 结果
     */
    @Override
    public int updateGcQuality(GcQuality gcQuality)
    {
        return gcQualityMapper.updateGcQuality(gcQuality);
    }

    /**
     * 批量删除质量管理-默认
     *
     * @param qualityIds 需要删除的质量管理-默认主键
     * @return 结果
     */
    @Override
    public int deleteGcQualityByQualityIds(Long[] qualityIds)
    {
        return gcQualityMapper.deleteGcQualityByQualityIds(qualityIds);
    }

    /**
     * 删除质量管理-默认信息
     *
     * @param qualityId 质量管理-默认主键
     * @return 结果
     */
    @Override
    public int deleteGcQualityByQualityId(Long qualityId)
    {
        return gcQualityMapper.deleteGcQualityByQualityId(qualityId);
    }
}
